﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MishraReader.ViewModels.AppServices;

namespace MishraReader.PlatformVMs
{
    class CredentialProvider : ICredentialProvider
    {
        private readonly IOptionsManager _options;

        public CredentialProvider(IOptionsManager options)
        {
            _options = options;
        }

        public string Login
        {
            get { return _options.Login; }
            set { _options.Login = value; }
        }

        public string Password 
        {
            get { return _options.Password; }
            set { _options.Password = value; }
        }
        public Task Persist()
        {
            return _options.Persist();
        }

    }
}
